import service from '@/utils/request'

// @Tags Shipu
// @Summary 创建Shipu
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Shipu true "创建Shipu"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /shipu/createShipu [post]
export const createShipu = (data) => {
  return service({
    url: '/shipu/createShipu',
    method: 'post',
    data
  })
}

// @Tags Shipu
// @Summary 删除Shipu
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Shipu true "删除Shipu"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /shipu/deleteShipu [delete]
export const deleteShipu = (data) => {
  return service({
    url: '/shipu/deleteShipu',
    method: 'delete',
    data
  })
}

// @Tags Shipu
// @Summary 删除Shipu
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Shipu"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /shipu/deleteShipu [delete]
export const deleteShipuByIds = (data) => {
  return service({
    url: '/shipu/deleteShipuByIds',
    method: 'delete',
    data
  })
}

// @Tags Shipu
// @Summary 更新Shipu
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Shipu true "更新Shipu"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /shipu/updateShipu [put]
export const updateShipu = (data) => {
  return service({
    url: '/shipu/updateShipu',
    method: 'put',
    data
  })
}

// @Tags Shipu
// @Summary 用id查询Shipu
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Shipu true "用id查询Shipu"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /shipu/findShipu [get]
export const findShipu = (params) => {
  return service({
    url: '/shipu/findShipu',
    method: 'get',
    params
  })
}

// @Tags Shipu
// @Summary 分页获取Shipu列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Shipu列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /shipu/getShipuList [get]
export const getShipuList = (params) => {
  return service({
    url: '/shipu/getShipuList',
    method: 'get',
    params
  })
}
